package com.harmontronics.hanma.paas.paas.utils;

import org.apache.commons.lang3.StringUtils;

public class EscapeUtil {
    public static String escapeChar(String before){
        if(StringUtils.isNotBlank(before)){
            if(StringUtils.isNotBlank(before)){
                before = before.replaceAll("\\\\", "\\\\\\\\");
                before = before.replaceAll("_", "\\\\_");
                before = before.replaceAll("%", "\\\\%");
            }
        }
        return before;
    }
}
